<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>❄️雪花❄️</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            height: 100vh;
            background-color: rgb(46, 71, 84);
        }
        
        .fall {
            position: absolute;
            top: 0;
            width: 140px;
            height: 140px;
            border-radius: 50%;
            /* background-color: #fff; */
            animation: fallDown 3s linear forwards;
            background-image: url('./雪花.png');
            background-repeat: no-repeat;
        }
        
        @keyframes fallDown {
            100% {
                transform: translateY(100vh);
            }
        }
    </style>
</head>

<body>
    <img style="width: 100%;height: 100%;" src="./雪域 挪威 云杉 森林 日落4k风景壁纸3840x2160_彼岸图网.jpg" alt="">
    <script>
        let body = document.body;
        setInterval(function() {
                let snow = document.createElement('i');
                snow.classList.add('fall');
                snow.style.left = Math.random() * window.innerWidth + 'px';
                snow.style.opacity = Math.random();
                body.appendChild(snow)
            }, 200)
            // 谢谢大家的观看
    </script>
</body>

</html>